package com.practice.view;

import android.content.Context;
import android.view.GestureDetector.OnGestureListener;
import android.view.MotionEvent;
import android.widget.LinearLayout;


public class MyLayout extends LinearLayout implements OnGestureListener{

	private MyOnCilinkTest cilinkTest;
	public MyLayout(Context context) {
		super(context);
	}

	@Override
	public boolean onDown(MotionEvent e) {
		return false;
	}

	@Override
	public void onShowPress(MotionEvent e) {
	}

	public boolean onSingleTapUp(int e) {
		cilinkTest.onClink(e);
		return false;
	}

	@Override
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
		return false;
	}

	@Override
	public void onLongPress(MotionEvent e) {
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
		return false;
	}
	
	
	public void setOnMyClickListener(MyOnCilinkTest myOnCilinkTest) {
		cilinkTest = myOnCilinkTest;
	}

	@Override
	public boolean onSingleTapUp(MotionEvent e) {
		return false;
	}

}
